import request from '@/utils/request'

export const getEmployeeRequest = (params) => {
  return request.get('api/sys/user', { params })
}

export const userExportRequest = () => {
  return request({
    url: 'api/sys/user/exportr',
    method: 'get',
    responseType: Blob
  })
}
export function templateExportRequest() {
  return request({
    url: 'api/sys/user/import/template',
    method: 'get',
    // 改变接收数据的类型
    responseType: 'blob' // 使用blob接收二进制文件流
  })
}

export function userImportRequest(data) {
  return request({
    url: 'api/sys/user/import',
    method: 'post',
    data
  })
}
